import Vue from 'vue'
import Router from 'vue-router'


import Home from '@/pages/Home.vue'
import Kind from '@/pages/Kind.vue'
import Publish from '@/pages/Publish.vue'
import Message from '@/pages/Message.vue'
import User from '@/pages/User.vue'
import Login from '@/pages/Login.vue'
import Setting from '@/pages/Setting.vue'
import Upload from '@/pages/Upload.vue'
import ShoppingCar from '@/pages/ShoppingCar.vue'
import Sent from '@/pages/Sent.vue'
import GoodList from '@/pages/GoodList.vue'
import Detail from '@/pages/Detail.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/Kind',
      component: Kind
    },
    {
      path: '/second/Publish',
      component: Publish
    },
    {
      path: '/second/Message',
      component: Message
    },
    {
      path: '/second/User',
      component: User
    },
    {
      path: '/second/User/Login',
      component: Login
    },
    {
      path: '/second/User/Setting',
      component: Setting
    },
    {
      path: '/second/User/Online/Upload',
      component: Upload
    },
    {
      path: '/second/ShoppingCar',
      component: ShoppingCar
    },
    {
      path: '/second/User/Sent',
      component: Sent
    },
    {
      path: '/Kind/GoodList/:qwe',
      component: GoodList
    },
    {
      path: '/Kind/GoodList/Detail/:asd',
      component: Detail
    },
  ]
})
